﻿<UserControl x:Class="ChannelNamesParsingModule.Views.Main"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" >
    
    <Grid Background="AliceBlue">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <Label
            Grid.Row="0" Grid.Column="0"
            Content="Channel names file:" />

        <TextBox Text="{Binding ChannelNamesFile, Mode=TwoWay}"
            Grid.Row="0" Grid.Column="1"
            />

        <Button 
            Grid.Row="0" Grid.Column="2"
            Content="..."
            Command="{Binding SelectChannelNamesFileCommand}"
            />
        
        <CheckBox 
            Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3"
            IsChecked="{Binding EnableDisplayingLogLineNumbersOfUndefinedChannels, Mode=TwoWay}"
            Content="Display found log line numbers of undefined channels" />

        <CheckBox 
            Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3"
            IsChecked="{Binding RememberEvaluationResults, Mode=TwoWay}"
            Content="Remember evaluation results" />

        <CheckBox 
            Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="3"
            IsChecked="{Binding RunFresh, Mode=TwoWay}"
            Content="Fresh run" />

        <Button 
            Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="3"
            Content="Evaluate"
            Command="{Binding EvaluateCommand}"
            />
        
        <TextBox
            Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="3"
            AcceptsReturn="True" TextWrapping="Wrap"
            Text="{Binding EvaluatingResultsText}"
            />
        
        
    </Grid>
    
</UserControl>
